package com.yj.springbootmybatis.pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
@Table(name = "users")
public class User {

    @Id
    private String id;
    private String username;
    private String password;
    private String nickname;
    private String face;

    private String mobile;
    private String email;
    @Min(value = 0,message = "性别选择不正确")
    @Max(value = 2,message = "性别选择不正确")
    private int sex;
    private Date birthday;
    private Date createTime;
    private Date updateTime;


}
